3. Creating Domains, Repositories, Data Sources

3.1 Creating Schemas using Repository Creation Utility

  1. Open command prompt on Unix and browse to <WL_HOME>/oracle_common/bin and run ./rcu. The following window is displayed.

  2. Click ‘Next’. The following window is displayed.

  3. Select ‘Create Repository’ and select ‘System Load and Product Load’. Click ‘Next’. The following screen is displayed.

  4. Provide database details where you want to create schemas, as shown in the above screen.

Note

You will require a user with SYSDBA role to create schemas.

  1. Click ‘Next’. The following window is displayed.

  2. Click ‘OK’ in the confirmation dialog.
  3. Click ‘Next’ the following window is displayed.

  4. Select ‘Create new Prefix’ option and specify the value. For example, OLL.
  5. Select the options ‘Metadata Services’ and ‘Oracle Platform Security Services’ as shown in the above screen. Click ‘Next’. The following window is displayed.

  6. Click ‘Next’. The following window is displayed.

  7. You can select one of the following:
  1. Click ‘Next’. The following window is displayed.

  2. Click ‘Next’. The following window is displayed.

  3. Click ‘OK’ in the confirmation dialog. The following window is displayed.

  4. Click ‘OK’ in the confirmation dialog. The following window is displayed.

  5. Click ‘Create’. The following windows are displayed.

  6. Click ‘Close’ to close the window.

3.2 Creating Domain and Servers

  1. In Unix/Linux machine, once the Oracle WebLogic Server is installed, navigate to the following path - <WL_HOME>/oracle_common/common/bin.
  2. In Unix, run ‘config.sh’

  3. Select ‘Create a new domain’ and specify the Domain Location.
  4. Click ‘Next’ to continue. The following window is displayed.

  5. Select the option ‘Create Domain Using Product Templates’ in the list of available templates and select ‘Oracle Enterprise Manager [em]’. On selection, the following options are auto-selected:
  1. Click ‘Next’. The following window is displayed.

  2. Specify the Domain Name in the ‘Application location’ field. You can click browse to directly select the path (if required). Click ‘Next’. The following window is displayed.

  3. Enter credentials for the following:
  1. Click ‘Next’. The following window is displayed.

  2. Select the Domain Mode as ‘Production’ and ‘JDK’ from Available JDKs. You can also select any other JDK by selecting ‘Other JDK Location’ option. Click ‘Next’. The following window is displayed.

  3. Specify the RCU data and click on ‘Get RCU Configuration’. The following window is displayed.

  4. Click ‘Next’. The following window is displayed.

  5. Click ‘Next’. The following window is displayed.

  6. Select ‘Administration Server’ and ‘Topology’ and click ‘Next’. The following window is displayed.

  7. Enter Administration ‘Server Name’ and ‘Listen Port’ details. Click ‘Next’. The following window is displayed.

  8. Click ‘Add’ button to create ‘ManagedServer’.
  9. Select the Server Group as ‘JRF-MAN-SVR’. Selecting this server group ensures that the Oracle JRF services are targeted to the specific Managed Servers created.

Note

It is recommended to create two managed servers, one each for UI and Web Services.

  1. Click ‘Next’. The following window is displayed.

  2. Configure as required and click ‘Next’. The following window is displayed.

  3. Configure as required and click ‘Next’. The following window is displayed.

  4. Configure as required and click ‘Next’. The following window is displayed.

  5. Click ‘Create’. The following window is displayed.

  6. Click ‘Next’. The following window is displayed.

  7. Click ‘Next’. The following window is displayed.

  8. Click ‘Next’. The following window is displayed.

  9. Click ‘Next’. The following window is displayed.

  10. Once the creation of the Domain is complete, click ‘Finish’ to close the window.

Note

The default Weblogic installation will be running JVM with 512MB, this has to be increased for the ADF managed server. Say, for a 2 CPU Quad Core with 16 GB it could have the JVM running at 8 GB as:

USER_MEM_ARGS="-Xms8192m –Xmx8192m -XX:PermSize=2048m -XX:Max­PermSize=2048m"

  1. The "$MW_HOME/user_projects/domains/<mydomain>" directory contains a script that can be used to start the Admin server.

If the server is required to be running and access to command line needs to be returned use "nohup" and "&"

$ nohup ./startWebLogic.sh &

  1. To Start Managed Server

If the server is required to be running and access to command line needs to be returned use "nohup" and "&".

$ nohup ./$MW_HOME/user_projects/domains/<mydomain>/bin/startManagedWebLogic.sh {ManagedServer_name} {AdminServer URL} &

The recommended parameters for each Managed Server for application and web services are as follows:

-Xms8g -Xmx8g -XX:NewRatio=3 -XX:HeapDumpPath=/tmp -Dweblogic.threadpool.MinPoolSize=40 -Dweblogic.threadpool.MaxPoolSize=150 -XX:SoftRefLRUPolicyMSPerMB=10 -Dweblogic.diagnostics.debug.DebugLogger.DISABLED=true -Dweblogic.management.discover=false -Dweblogic.llr.table.specjdsl=wl_llr_jent31_1 -Dweblogic.llr.table.specjds2=wl_llr_jent31_2 -Dsun.net.inetaddr.ttl=0 -Dnetworkaddress.cache.ttl=0 -XX:AllocatePrefetchDistance=256 -XX:AllocatePrefetchStyle=1 -XX:+AggressiveOpts -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:MaxTenuringThreshold=4 -XX:-UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=60 -XX:CMSTriggerRatio=60 -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:+CMSCompactWhenClearAllSoftRefs -XX:PrintCMSStatistics=1 -XX:+PrintClassHistogram -XX:-UseParallelGC -XX:ParallelGCThreads=10 -XX:-TraceClassUnloading -XX:-UseParallelOldGC -XX:+UseCompressedOops -XX:+UseBiasedLocking -XX:+AlwaysPreTouch -XX:-UseAdaptiveSizePolicy -Djbo.load.components.lazily=true -Djbo.ampool.initpoolsize=100 -Djbo.recyclethreshold=200 -Djbo.ampool.minavailablesize=200 -Djbo.ampool.maxavailablesize=200 -Djbo.ampool.timetolive=-1 -Djbo.locking.mode=optimistic -Djbo.doconnectionpooling=true -Djbo.txn.disconnect_level=1 -Djbo.ampool.doampooling=true -Djbo.dofailover=false -Djbo.ampool.maxinactiveage=3600000 -Djbo.ampool.monitorsleepinterval=360000 -Doracle.multitenant.enabled=false -Dweblogic.mdb.message.MinimizeAQSessions=true -Dweblogic.ejb.container.MDBDestinationPollIntervalMillis=6000 -XX:StringTableSize=100003 -XX:ReservedCodeCacheSize=1g -XX:+UseStringCache -XX:+OptimizeStringConcat -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -Doracle.adfm.useSharedTransactionForFrame=false

-Xms8g -Xmx8g -XX:NewRatio=3 -XX:HeapDumpPath=/tmp -Dweblogic.threadpool.MinPoolSize=40 -Dweblogic.threadpool.MaxPoolSize=150 -XX:SoftRefLRUPolicyMSPerMB=10 -Dweblogic.diagnostics.debug.DebugLogger.DISABLED=true -Dweblogic.management.discover=false -Dweblogic.llr.table.specjdsl=wl_llr_jent31_1 -Dweblogic.llr.table.specjds2=wl_llr_jent31_2 -Dsun.net.inetaddr.ttl=0 -Dnetworkaddress.cache.ttl=0 -XX:AllocatePrefetchDistance=256 -XX:AllocatePrefetchStyle=1 -XX:+AggressiveOpts -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:MaxTenuringThreshold=4 -XX:-UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=60 -XX:CMSTriggerRatio=60 -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:+CMSCompactWhenClearAllSoftRefs -XX:-UseParallelGC -XX:ParallelGCThreads=10 -XX:-TraceClassUnloading -XX:-UseParallelOldGC -XX:+UseCompressedOops -XX:+UseBiasedLocking -XX:+AlwaysPreTouch -XX:-UseAdaptiveSizePolicy -Doracle.multitenant.enabled=false -XX:StringTableSize=100003 -XX:ReservedCodeCacheSize=1g -XX:+UseStringCache -XX:+OptimizeStringConcat -XX:+UnlockCommercialFeatures -XX:+FlightRecorder

3.3 Creating Metadata Repository

Assuming that OLL_MDS schema is created using Oracle Repository Creation Utility (RCU) as mentioned in Creating Schemas using Repository Creation Utility section, follow the below steps to create the repository.

  1. Login to Oracle Enterprise Manager 12c console (http://hostname:port/em).

  2. Click on domain name OFSLLREL_domain on the left side panel.
  3. Expand Weblogic domain OFSLLREL_domain and click ‘Metadata Repositories’ option, as shown in the above screen.
  4. The following window is displayed.

  5. Click Register button. The following window is displayed.

  6. Enter database instance details under Database Connection Information section and click ‘Query’. All available schemas in the given database instance are listed.
  7. Select the schema you require and in the Selected Repository – Schema OLL_MDS section, enter ‘Repository Name’ (adf) and the password.
  8. Click OK. The following window is displayed.

  9. Click Repository name ‘mds-adf’ on left panel. You can even select it from right panel.

  10. Click Add and target to AdminSever and OFSLL_ManagedServer as on right panel.

3.4 Creating Data Source

  1. Login to WebLogic Server 12c console (http://hostname:port/console).

  2. The following window is displayed.

  3. Click Domain Name > Services > Data Sources.
  4. The following window is displayed.

  5. Click ‘Lock & Edit’ button on the left panel. Click ‘New’ on right panel and select Generic Data Source.

  6. Enter Data source ‘Name’, JNDI Name as ‘jdbc/ofsllDBConnDS’ and select ‘Oracle’ as Database Type.
  7. Click ‘Next’. The following window is displayed.

  8. Select the Database Driver ‘Oracle's Driver(Thin) for Instance connections; Versions:Any’ as shown above.
  9. Click ‘Next’. The following window is displayed.

  10. Click ‘Next’. The following window is displayed.

  11. Enter Database details click ‘Next’. The following window is displayed.

  12. Click ‘Test Configuration’. The following window is displayed.

  13. Displays confirmation message as ‘Connection test succeeded’. Click ‘Next’. The following window is displayed.

  14. Select target Servers ‘AdminServer’ and ‘OFSLL_ManagedServer’ and click ‘Finish’. The following window is displayed.

  15. Click ‘Activate Changes’ on the left panel.

Update the following parameters in JDBC data source connection pool:

  1. Select Services > Data Sources > select the OFSLL data source > Connection Pool.
  2. Initial capacity and Maximum capacity is defaulted to 15, if the number of concurrent users are more this needs to be increased.
  3. Click Advanced button and update the following:
  1. Click ‘Save’.

Note

User Authentication and Management is outside of Oracle Financial Services Lending and Leasing application. Organizations can use an LDAP implementation for authentication. For Development and Testing purpose, the following sections can be configured for au­thentication:

3.5 Creating SQL Authentication Provider

3.6 Creating User Groups and Users

3.7 Implementing JMX Policy for Change Password

4.1 Configuring Password Policy for SQL Authenticator

4.2 Configuring User Lockout Policy

 

3.5 Creating SQL Authentication Provider

  1. Login to WebLogic server administration console and click ‘Security Realms’ in left panel. The following window is displayed.

  2. Click ‘myrealm’ on right panel. The following window is displayed.

  3. Click on Providers tab. The following window is displayed.

  4. Click ‘Lock & Edit’ to unlock the screen and click ‘New’ button in Authentication Providers sub tab. The following window is displayed.

  5. Create Authentication provider with following values:
  1. Click ‘OK’. The following window is displayed.

  2. Click on ‘Activate Changes’. The following window is displayed.

Authentication order should be maintained as mentioned in the above screen. ‘OFSLLDBAuthenticator’ will be displayed as above.

  1. Click on ‘OFSLLDBAuthenticator’. The following window is displayed.

  2. Select ‘SUFFICIENT’ as the Control Flag and click Save.
  3. Click Provider Specific sub tab under Configuration tab. The following window is displayed.

  4. Specify the following values in corresponding fields:

 

  1. Click ‘Save’.

Note

Application server needs to be restarted for these changes to take effect.

3.6 Creating User Groups and Users

3.6.1 Creating Users

Create an OFSLL application super user to login to the application.

A script is provided in the distribution media in the dba_utils folder to create an user.

Note

By default there are no users created to login to OFSLL application.

Login as application schema owner and run the script ‘crt_app_user.sql script’ to create OFSLL application user.

  1. Login into WebLogic server console.
  2. Click ‘Security Realms’ on the left panel.
  3. Click ‘myrealm’ on the right panel..

  4. Select ‘Users’ tab under Users and Groups.
  5. If SQLAuthenticator is configured as a Security Provider for the OFSLL application, the Users are automatically created in weblogic when created through an application.

3.6.2 Creating User Groups

  1. Select ‘Groups’ tab under Users and Groups.
  2. If SQLAuthenticator is configured as a Security Provider for the OFSLL application, the Groups are automatically created in weblogic when created through an application.

3.6.3 Assigning Users to Groups

The USERS are automatically mapped to default application group - OFSLL_USER.

3.6.4 Resetting password via weblogic console

  1. Click on ‘User’. Select Passwords tab and enter new password and confirm password.

  2. Click ‘Save’.The following window displayed.

3.7 Implementing JMX Policy for Change Password

  1. Login to Oracle WebLogic Server 12c console (http://hostname:port/console)

Note

The Change Password feature uses the JMX Policy configured on the domain. Hence, the AdminServer is required to be up and running to enable this.

  1. Click Domain > Security > myrealm > Configuration

  2. To enable JMX policy select the ‘Use Authorization Providers to Protect JMX Access’ check box on the right panel

  3. Click ‘Save’ and restart the server.
  4. Re-login to console.
  5. Click Domain > Security > myrealm > Roles and Policies > Realm Policies

Note

If server is not restarted, JMX Policy Editor option will not appear

  1. Click on JMX Policy Editor to configure

  2. Select ‘GLOBAL SCOPE’ and click Next.

  3. Select weblogic.security.providers.authentication.
  4. Select ‘SQLAuthenticatorMBean’. Click ‘Next’.

  5. Expand ‘Operations: Permissions to Invoke’ and select ‘ChangeUserPassword’.
  6. Click ‘Create Policy’. The following window is displayed for Authorization providers where you can add conditions to setup the policy.
  7. Click ‘Add Condition’. The below screen will be displayed.

  8. For Predicate List, select Group for configuration. Click ‘Next’.

  9. Select user roles for application.
  10. Click Finish. Click on Save to complete the configuration. The following window will be displayed.